import request from '@/utils/request'

/**
 * 工单查询
 * @param {Object} params
 * @returns
 */
export function getWorkList(params) {
  return request({
    url: '/org/workOrder',
    method: 'get',
    params
  })
}

/**
 * 工单详情
 * @param {String | Number} id
 * @returns
 */
export function getWorkDetail(id) {
  return request({
    url: `/org/workOrder/${id}`,
    method: 'get'
  })
}
